<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>小芳存钱</title>
    <script>
      //定义变量,保存存钱天数
      let days = 0
      //定义变量,保存存钱总额
      let total = 0
      for (;;) {
        days++
        total += 2.5
        if (days % 5 == 0) {
          total -= 6
        }
        if (total >= 100) {
          break
        }
      }
      alert('一共需要存' + days + '天.')
    </script>
  </head>
  <body></body>
</html>
